package com.ruoyi.shopping.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品规格备份对象 jy_mall_product_specs_back
 *
 * @author ruoyi
 * @date 2022-07-19
 */
@ApiModel
public class MallProductSpecsBack extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty(value = "${comment}")
    private Long id;

    /** 商品备份Id */
    @Excel(name = "商品备份Id")
    @ApiModelProperty(value = "商品备份Id")
    private Long productBackId;

    /** 规格id */
    @Excel(name = "规格id")
    @ApiModelProperty(value = "规格id")
    private Long specsId;

    /** 规格名称 */
    @Excel(name = "规格名称")
    @ApiModelProperty(value = "规格名称")
    private String specsName;

    /** 规格照片 */
    @Excel(name = "规格照片")
    @ApiModelProperty(value = "规格照片")
    private String specsPhoto;

    /** 排序 */
    @Excel(name = "排序")
    @ApiModelProperty(value = "排序")
    private Integer sort;

    /** 原价 */
    @Excel(name = "原价")
    @ApiModelProperty(value = "原价")
    private BigDecimal originalPrice;

    /** 现价 */
    @Excel(name = "现价")
    @ApiModelProperty(value = "现价")
    private BigDecimal currentPrice;

    /** 销量 */
    @Excel(name = "销量")
    @ApiModelProperty(value = "销量")
    private Integer salesNum;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setProductBackId(Long productBackId)
    {
        this.productBackId = productBackId;
    }

    public Long getProductBackId()
    {
        return productBackId;
    }
    public void setSpecsId(Long specsId)
    {
        this.specsId = specsId;
    }

    public Long getSpecsId()
    {
        return specsId;
    }
    public void setSpecsName(String specsName)
    {
        this.specsName = specsName;
    }

    public String getSpecsName()
    {
        return specsName;
    }
    public void setSpecsPhoto(String specsPhoto)
    {
        this.specsPhoto = specsPhoto;
    }

    public String getSpecsPhoto()
    {
        return specsPhoto;
    }
    public void setSort(Integer sort)
    {
        this.sort = sort;
    }

    public Integer getSort()
    {
        return sort;
    }
    public void setOriginalPrice(BigDecimal originalPrice)
    {
        this.originalPrice = originalPrice;
    }

    public BigDecimal getOriginalPrice()
    {
        return originalPrice;
    }
    public void setCurrentPrice(BigDecimal currentPrice)
    {
        this.currentPrice = currentPrice;
    }

    public BigDecimal getCurrentPrice()
    {
        return currentPrice;
    }
    public void setSalesNum(Integer salesNum)
    {
        this.salesNum = salesNum;
    }

    public Integer getSalesNum()
    {
        return salesNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productBackId", getProductBackId())
            .append("specsId", getSpecsId())
            .append("specsName", getSpecsName())
            .append("specsPhoto", getSpecsPhoto())
            .append("sort", getSort())
            .append("originalPrice", getOriginalPrice())
            .append("currentPrice", getCurrentPrice())
            .append("salesNum", getSalesNum())
            .append("delState", getDelState())
            .append("delUser", getDelUser())
            .append("delType", getDelType())
            .append("delTime", getDelTime())
            .append("createBy", getCreateBy())
            .append("createType", getCreateType())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateType", getUpdateType())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
